71f0e6f390ece64dd3aa031e4bf2434aea80f35f,java/java-impl/src/com/intellij/lang/java/JavaBreadcrumbsInfoProvider.java,JavaBreadcrumbsInfoProvider,getElementInfo,#PsiElement#,45
Before Change
PsiType type = DumbService.isDumb(e.getProject()) ? null : ((PsiFunctionalExpression)e).getFunctionalInterfaceType();
return type == null ? "<lambda>" : "lambda " + PsiNameHelper.getShortClassName(type.getCanonicalText());
}
return ElementDescriptionUtil.getElementDescription(e, UsageViewShortNameLocation.INSTANCE);
}
@Nullable
After Change
PsiType type = DumbService.isDumb(e.getProject()) ? null : ((PsiFunctionalExpression)e).getFunctionalInterfaceType();
return type == null ? "<lambda>" : "lambda " + getShortClassName(type.getCanonicalText());
}
String description = ElementDescriptionUtil.getElementDescription(e, UsageViewShortNameLocation.INSTANCE);
String suffix = e instanceof PsiParameterListOwner? "()" :
//e instanceof PsiAnonymousClass || e instanceof PsiClassInitializer ? " {}" :
null;
return suffix != null ? description + suffix : description;
}
@Nullable